package com.uml.umlwork.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.uml.umlwork.entity.base.BaseEntity;
import com.uml.umlwork.entity.base.BaseUuEntity;
import com.uml.umlwork.entity.enumeration.RoleEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import lombok.experimental.Accessors;

/**
 * @author Siki
 * @date 2020/12/21
 */
@ApiModel("负责登陆注册实体")
@Getter
@Setter
@Accessors(chain = true)
@NoArgsConstructor
@TableName(autoResultMap = true,value = "uml_user")
public class User extends BaseUuEntity {
    @ApiModelProperty("账号")
    private String username;

    @ApiModelProperty("密码")
    private String password;

    @ApiModelProperty("姓名")
    private String name;

    @ApiModelProperty("电话")
    private String phone;

    /**
     * 确定只有三个身份,所以用枚举维护
     */
    @ApiModelProperty("身份")
    private RoleEnum role;
}